package com.lmt_13;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

public class FileReaderTest {
    public static void main(String[] args) {
        try (
                Reader reader = new FileReader("src/com/lmt_13/1.txt");
                ) {
            // 开始文件读取
            char []buffer = new char[10];
            while (reader.read(buffer)!= -1){
                System.out.print(buffer);
            }

        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
